<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: General</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__scb__spi__general__functions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">General<div class="ingroups"><a class="el" href="group__group__scb.html">SCB          (Serial Communication Block)</a> &raquo; <a class="el" href="group__group__scb__spi.html">SPI (SCB)</a> &raquo; <a class="el" href="group__group__scb__spi__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gabe68169c810119b93e1164127663033c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__scb__spi__enums.html#ga8ad22e7a296b64de0d41c983979d53b3">cy_en_scb_spi_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__spi__general__functions.html#gabe68169c810119b93e1164127663033c">Cy_SCB_SPI_Init</a> (<a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *base, <a class="el" href="structcy__stc__scb__spi__config__t.html">cy_stc_scb_spi_config_t</a> const *config, <a class="el" href="structcy__stc__scb__spi__context__t.html">cy_stc_scb_spi_context_t</a> *context)</td></tr>
<tr class="memdesc:gabe68169c810119b93e1164127663033c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the SCB for SPI operation.  <a href="#gabe68169c810119b93e1164127663033c">More...</a><br /></td></tr>
<tr class="separator:gabe68169c810119b93e1164127663033c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga489376927f6720ad4ea5b6dd1efb4fe0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__spi__general__functions.html#ga489376927f6720ad4ea5b6dd1efb4fe0">Cy_SCB_SPI_DeInit</a> (<a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *base)</td></tr>
<tr class="memdesc:ga489376927f6720ad4ea5b6dd1efb4fe0"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes the SCB block; returns the register values to default.  <a href="#ga489376927f6720ad4ea5b6dd1efb4fe0">More...</a><br /></td></tr>
<tr class="separator:ga489376927f6720ad4ea5b6dd1efb4fe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e5d7cb17044cdd8ab1543e038bf89a8"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__spi__general__functions.html#ga7e5d7cb17044cdd8ab1543e038bf89a8">Cy_SCB_SPI_Enable</a> (<a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *base)</td></tr>
<tr class="memdesc:ga7e5d7cb17044cdd8ab1543e038bf89a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the SCB block for the SPI operation.  <a href="#ga7e5d7cb17044cdd8ab1543e038bf89a8">More...</a><br /></td></tr>
<tr class="separator:ga7e5d7cb17044cdd8ab1543e038bf89a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga01fcd87713fe370d94828563ff1e86b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__spi__general__functions.html#ga01fcd87713fe370d94828563ff1e86b8">Cy_SCB_SPI_Disable</a> (<a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *base, <a class="el" href="structcy__stc__scb__spi__context__t.html">cy_stc_scb_spi_context_t</a> *context)</td></tr>
<tr class="memdesc:ga01fcd87713fe370d94828563ff1e86b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the SCB block, clears context statuses, and disables TX and RX interrupt sources.  <a href="#ga01fcd87713fe370d94828563ff1e86b8">More...</a><br /></td></tr>
<tr class="separator:ga01fcd87713fe370d94828563ff1e86b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa94d2ec7eb38573274587eeff5635288"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__spi__general__functions.html#gaa94d2ec7eb38573274587eeff5635288">Cy_SCB_SPI_SetActiveSlaveSelect</a> (<a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *base, <a class="el" href="group__group__scb__spi__enums.html#ga65ae7c131e5e5cae3327aeb6ac870488">cy_en_scb_spi_slave_select_t</a> slaveSelect)</td></tr>
<tr class="memdesc:gaa94d2ec7eb38573274587eeff5635288"><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects an active slave select line from one of four available.  <a href="#gaa94d2ec7eb38573274587eeff5635288">More...</a><br /></td></tr>
<tr class="separator:gaa94d2ec7eb38573274587eeff5635288"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1473d59d9fe1fbe9a981a2af34c6904d"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__spi__general__functions.html#ga1473d59d9fe1fbe9a981a2af34c6904d">Cy_SCB_SPI_SetActiveSlaveSelectPolarity</a> (<a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *base, <a class="el" href="group__group__scb__spi__enums.html#ga65ae7c131e5e5cae3327aeb6ac870488">cy_en_scb_spi_slave_select_t</a> slaveSelect, <a class="el" href="group__group__scb__spi__enums.html#gac1d52a37938101b62b908fb4263d98a2">cy_en_scb_spi_polarity_t</a> polarity)</td></tr>
<tr class="memdesc:ga1473d59d9fe1fbe9a981a2af34c6904d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the active polarity for the slave select line.  <a href="#ga1473d59d9fe1fbe9a981a2af34c6904d">More...</a><br /></td></tr>
<tr class="separator:ga1473d59d9fe1fbe9a981a2af34c6904d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4241f6166816159f7365220834a5e0d0"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__scb__spi__general__functions.html#ga4241f6166816159f7365220834a5e0d0">Cy_SCB_SPI_IsBusBusy</a> (<a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> const *base)</td></tr>
<tr class="memdesc:ga4241f6166816159f7365220834a5e0d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the SPI bus is busy or not.  <a href="#ga4241f6166816159f7365220834a5e0d0">More...</a><br /></td></tr>
<tr class="separator:ga4241f6166816159f7365220834a5e0d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gabe68169c810119b93e1164127663033c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabe68169c810119b93e1164127663033c">&#9670;&nbsp;</a></span>Cy_SCB_SPI_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__scb__spi__enums.html#ga8ad22e7a296b64de0d41c983979d53b3">cy_en_scb_spi_status_t</a> Cy_SCB_SPI_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__scb__spi__config__t.html">cy_stc_scb_spi_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__scb__spi__context__t.html">cy_stc_scb_spi_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the SCB for SPI operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SPI SCB instance.</td></tr>
    <tr><td class="paramname">config</td><td>The pointer to the configuration structure <a class="el" href="structcy__stc__scb__spi__config__t.html">cy_stc_scb_spi_config_t</a>.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__scb__spi__context__t.html">cy_stc_scb_spi_context_t</a> allocated by the user. The structure is used during the SPI operation for internal configuration and data retention. The user must not modify anything in this structure. If only SPI <a class="el" href="group__group__scb__spi.html#group_scb_spi_ll">Low-Level API</a> will be used pass NULL as pointer to context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__scb__spi__enums.html#ga8ad22e7a296b64de0d41c983979d53b3">cy_en_scb_spi_status_t</a></dd></dl>
<dl class="section note"><dt>Note</dt><dd>If SCB is already enabled, ensure that the SCB block is disabled <a class="el" href="group__group__scb__spi__general__functions.html#ga01fcd87713fe370d94828563ff1e86b8">Cy_SCB_SPI_Disable</a> before calling this function. </dd></dl>

</div>
</div>
<a id="ga489376927f6720ad4ea5b6dd1efb4fe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga489376927f6720ad4ea5b6dd1efb4fe0">&#9670;&nbsp;</a></span>Cy_SCB_SPI_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SCB_SPI_DeInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes the SCB block; returns the register values to default. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SPI SCB instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Ensure that the SCB block is disabled <a class="el" href="group__group__scb__spi__general__functions.html#ga01fcd87713fe370d94828563ff1e86b8">Cy_SCB_SPI_Disable</a> before calling this function. </dd></dl>

</div>
</div>
<a id="ga7e5d7cb17044cdd8ab1543e038bf89a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7e5d7cb17044cdd8ab1543e038bf89a8">&#9670;&nbsp;</a></span>Cy_SCB_SPI_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SCB_SPI_Enable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the SCB block for the SPI operation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SPI SCB instance. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga01fcd87713fe370d94828563ff1e86b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga01fcd87713fe370d94828563ff1e86b8">&#9670;&nbsp;</a></span>Cy_SCB_SPI_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SCB_SPI_Disable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__scb__spi__context__t.html">cy_stc_scb_spi_context_t</a> *&#160;</td>
          <td class="paramname"><em>context</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the SCB block, clears context statuses, and disables TX and RX interrupt sources. </p>
<p>Note that after the block is disabled, the TX and RX FIFOs and hardware statuses are cleared. Also, the hardware stops driving the output and ignores the input. Refer to section <a class="el" href="group__group__scb__spi.html#group_scb_spi_lp">Low Power Support</a> for more information about SPI pins when SCB disabled.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SPI SCB instance.</td></tr>
    <tr><td class="paramname">context</td><td>The pointer to the context structure <a class="el" href="structcy__stc__scb__spi__context__t.html">cy_stc_scb_spi_context_t</a> allocated by the user. The structure is used during the SPI operation for internal configuration and data retention. The user must not modify anything in this structure. If only SPI functions that do not require context will be used to pass NULL as pointer to context.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Calling this function when the SPI is busy (master preforms data transfer or slave communicates with the master) may cause transfer corruption because the hardware stops driving the outputs and ignores the inputs. Ensure that the SPI is not busy before calling this function. </dd></dl>

</div>
</div>
<a id="gaa94d2ec7eb38573274587eeff5635288"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa94d2ec7eb38573274587eeff5635288">&#9670;&nbsp;</a></span>Cy_SCB_SPI_SetActiveSlaveSelect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SCB_SPI_SetActiveSlaveSelect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__scb__spi__enums.html#ga65ae7c131e5e5cae3327aeb6ac870488">cy_en_scb_spi_slave_select_t</a>&#160;</td>
          <td class="paramname"><em>slaveSelect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Selects an active slave select line from one of four available. </p>
<p>This function is applicable for the master and slave.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SPI SCB instance.</td></tr>
    <tr><td class="paramname">slaveSelect</td><td>The slave select line number. See <a class="el" href="group__group__scb__spi__enums.html#ga65ae7c131e5e5cae3327aeb6ac870488">cy_en_scb_spi_slave_select_t</a> for the set of constants.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>The SCB must be idle or disabled before calling this function. </dd></dl>

</div>
</div>
<a id="ga1473d59d9fe1fbe9a981a2af34c6904d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1473d59d9fe1fbe9a981a2af34c6904d">&#9670;&nbsp;</a></span>Cy_SCB_SPI_SetActiveSlaveSelectPolarity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_SCB_SPI_SetActiveSlaveSelectPolarity </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__scb__spi__enums.html#ga65ae7c131e5e5cae3327aeb6ac870488">cy_en_scb_spi_slave_select_t</a>&#160;</td>
          <td class="paramname"><em>slaveSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__scb__spi__enums.html#gac1d52a37938101b62b908fb4263d98a2">cy_en_scb_spi_polarity_t</a>&#160;</td>
          <td class="paramname"><em>polarity</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the active polarity for the slave select line. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SPI SCB instance.</td></tr>
    <tr><td class="paramname">slaveSelect</td><td>The slave select line number. See <a class="el" href="group__group__scb__spi__enums.html#ga65ae7c131e5e5cae3327aeb6ac870488">cy_en_scb_spi_slave_select_t</a> for the set of constants.</td></tr>
    <tr><td class="paramname">polarity</td><td>The polarity of the slave select line. See <a class="el" href="group__group__scb__spi__enums.html#gac1d52a37938101b62b908fb4263d98a2">cy_en_scb_spi_polarity_t</a> for the set of constants.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>The SCB must be idle or disabled before calling this function. </dd></dl>

</div>
</div>
<a id="ga4241f6166816159f7365220834a5e0d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4241f6166816159f7365220834a5e0d0">&#9670;&nbsp;</a></span>Cy_SCB_SPI_IsBusBusy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE bool Cy_SCB_SPI_IsBusBusy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_cy_s_c_b___type.html">CySCB_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns whether the SPI bus is busy or not. </p>
<p>The bus busy is determined using the slave select signal.</p><ul>
<li>Motorola and National Semiconductor sub-modes: the bus is busy after the slave select line is activated and lasts until the slave select line is deactivated.</li>
<li>Texas Instrument sub-modes: The bus is busy the moment of the initial pulse on the slave select line and lasts until the transfer is complete (all bytes from the TX FIFO area shifted-out on the bus).</li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to the SPI SCB instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True - the bus is busy; false - the bus is idle.</dd></dl>
<dl class="section note"><dt>Note</dt><dd><ul>
<li>The SPI master does not assign the slave select line immediately after the first data element is written into the TX FIFO. It takes up to two SCLK clocks to assign the slave select line. Before this happens, the bus is considered idle.</li>
<li>If the SPI master is configured to transmit each data element separated by a de-assertion of the slave select line, the bus is busy during each element transfer and is free between them. </li>
</ul>
</dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
